package cn.cmeizu.spring6.reflect;

/**
 * @author cmeizu
 * @date 2023/2/10 00:29
 */
public class Car {
  private String name;
  private int age;
  private String color;

  public Car() {
  }

  public Car(String name, int age, String color) {
    this.name = name;
    this.age = age;
    this.color = color;
  }

  private void run() {
    System.out.println("私有的run方法。。。。");
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getAge() {
    return age;
  }

  public void setAge(int age) {
    this.age = age;
  }

  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  @Override
  public String toString() {
    return "Car{" +
        "name='" + name + '\'' +
        ", age=" + age +
        ", color='" + color + '\'' +
        '}';
  }
}
